﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace CommonEntity.PackageEntity
{
    public class PackageInfo
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }

        /// <summary>
        /// 手机名字
        /// </summary>
        [Required]
        [Column(TypeName = "VARCHAR(50)")]
        public string PhoneName { get; set; }

        /// <summary>
        /// 手机CPU ID
        /// </summary>
        [Required]
        public int CPUID { get; set; }
        
        /// <summary>
        /// 手机电池 ID
        /// </summary>
        [Required]
        public int BatteryID { get; set; }
        
        /// <summary>
        /// 手机外壳 ID
        /// </summary>
        [Required]
        public int ShellID { get; set; }

        /// <summary>
        /// 组装时间
        /// </summary>
        [Required]
        public DateTime CreateTime { get; set; }

    }
}
